const BaseController = require("../../base")

module.exports = class extends BaseController{
	constructor(){
		super()
	}
    async _before(ctx,next){
        console.log("user before $$$$$$$$$")
		ctx.user = {username: 'sam',id:ctx.params.id}
		await next()
    }
	get(ctx){
		let {id} = ctx.params
		this.success({msg: `user ${id} detail`})
	}
}